#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<stdbool.h>
#include<assert.h>
#include<time.h>
#include<stdlib.h>
typedef int HPDataType;
typedef struct Heap
{
	int* a;
	int size;
	int capacity;
}HP;

void HeapInit(HP* hp);
void HeapDestory(HP* hp);
void HeapPush(HP* hp, HPDataType x);
void HeapPop(HP* hp);
//bool HeapEmpty(HP* hp);
int HeapSize(HP* hp);
void Swap(HPDataType *px, HPDataType *py);
void Print(HP* hp);
int Top(HP* hp);
void AdjustDown(int* a, int n, int parent);
void AdjustUp(int* a,int child);
